package com.example.dormlist.entity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.List;

@Getter
@Setter
@NoArgsConstructor
@Entity
@Table(name = "order_info")
public class OrderInfo {

    @Id
    private Long id;

    @Column(name = "dorm_mate")
    private String dormMateIds;

    @Column(
            name = "order_id",
            nullable = false
    )
    private Long orderId;
}
